<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="/WEB-INF/tld/Paging.tld" prefix="pagingTag"%>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"%>
<head>
<title>Danh sách truyện</title>
<script type="text/javascript">
	$(function(){
		//lay thong bao notice
	  	var notice = $.getUrlVar('notice');
		if (notice != null || notice != "") {
			if(notice=="successfully"){
				$("#notice").html("Thành công");
				$("#notice").fadeOut(5000);
			}else if(notice=="error"){
				$("#notice").html("Dữ liệu truyền vào chưa chính xác.");
				$("#notice").fadeOut(5000);
			}
		}
		//end
	});
</script>
</head>
<body>
	<section class="database">
		<article>
			<c:choose>
				<c:when test="${lstItem.size() > 0}">
						<h4 class="pInfo">Tổng số record : <font color="blue">${totalSize}</font></h4>
						<br class='clr' />
						<br class='clr' />
						<table class="tableCss">
							<thead>
								<tr>
									<th>Tên</th>
									<th>Xóa</th>
								</tr>
							</thead>
							<tbody>
								<c:forEach items="${lstItem}" var="item">
									<tr>
										<th>${item.getTitle()}</th>
										<th><a href='<spring:url value="/quan-ly/picasaweb/xoa-album.htm?urlAlbum=${item.getFeedLink().getHref()}&gmail=${gmail}&pwd=${pwd}" />' class="red">Chơi luôn</a></th>
									</tr>
								</c:forEach>
							</tbody>
						</table>
				</c:when>
				<c:otherwise>Chưa có dữ liệu...</c:otherwise>
			</c:choose>
		</article>
	</section>
</body>
